﻿using MediatR;
using RearLivestock.Common.Domains.wbx;
using RearLivestock.Common.Dtos;
using System.ComponentModel.DataAnnotations;

namespace RearLivestock.Beginning.Api.Application.Command.PigWeighings
{
    /// <summary>
    /// 猪只称重显示Command
    /// </summary>
    public class SearchPigWeighingCommand:IRequest<Result<PageResultDto<PigWeighingDto>>>
    {

        /// <summary>
        /// 称重日期
        /// </summary>
        public DateTime? SDate { get; set; }
        /// <summary>
        /// 称重日期
        /// </summary>
        public DateTime? ODate { get; set; }
        /// <summary>
        /// 耳号
        /// </summary>
        public string? EarNumber { get; set; } = string.Empty;
        /// <summary>
        /// 称重类型ID
        /// </summary>
        public int? WeighingTypeId { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public int? Gender { get; set; }

        /// <summary>
        /// 品种ID
        /// </summary>
        public int? VarietiesId { get; set; }
        /// <summary>
        /// 当前页
        /// </summary>
        public int PageIndex { get; set; }
        /// <summary>
        /// 每页显示的数量
        /// </summary>
        public int PageSize { get; set; }
    }
}
